package ad.android.util;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;


public class JsonToDtoUtil {
	private static GsonBuilder gBuilder = new GsonBuilder();
	public static <T>T transToDto(String jsonStr,Class<T> dtoClazz){
		Gson gson= gBuilder.create();
		T r = gson.fromJson(jsonStr, dtoClazz);
		return r;
	}
}
